import "@tarojs/components/dist/taro-components/taro-components.css";
import {
  defineCustomElements,
  applyPolyfills,
} from "@tarojs/components/loader";

export const decorators = [
  (Story) => {
    applyPolyfills().then(function () {
      defineCustomElements(window);
    });

    return Story();
  },
];

export const parameters = {
  actions: { argTypesRegex: "^on[A-Z].*" },
  controls: {
    matchers: {
      color: /(background|color)$/i,
      date: /Date$/,
    },
  },
};
